package com.imagine.entity;

import java.io.Externalizable;
import java.io.Serializable;

/**
 * Created by liangyue on 2017/9/26.
 */
public class Delegation  implements Serializable {
    private int delegationId;
    private String cAccountId;
    private String securityId;
    private String securityName;
    private String delegationDirection;
    private int delegationNum;
    private double delegationPrice;
    private int delegationState;
    private double evenPrice;
    private String tradingMarket;
    private String currency;
    private String delegationTime;
    private double bargainPrice;
    private double bargainAmount;

    public Delegation(){

    }

    public Delegation(int delegationId, String cAccountId, String securityId, String securityName, String delegationDirection, int delegationNum, double delegationPrice, int delegationState, double evenPrice, String tradingMarket, String currency, String delegationTime, double bargainPrice, double bargainAmount) {
        this.delegationId = delegationId;
        this.cAccountId = cAccountId;
        this.securityId = securityId;
        this.securityName = securityName;
        this.delegationDirection = delegationDirection;
        this.delegationNum = delegationNum;
        this.delegationPrice = delegationPrice;
        this.delegationState = delegationState;
        this.evenPrice = evenPrice;
        this.tradingMarket = tradingMarket;
        this.currency = currency;
        this.delegationTime = delegationTime;
        this.bargainPrice = bargainPrice;
        this.bargainAmount = bargainAmount;
    }

    public Delegation(String cAccountId, String securityId, String securityName, String delegationDirection, int delegationNum, double delegationPrice, int delegationState, double evenPrice, String tradingMarket, String currency, String delegationTime) {
        this.cAccountId = cAccountId;
        this.securityId = securityId;
        this.securityName = securityName;
        this.delegationDirection = delegationDirection;
        this.delegationNum = delegationNum;
        this.delegationPrice = delegationPrice;
        this.delegationState = delegationState;
        this.evenPrice = evenPrice;
        this.tradingMarket = tradingMarket;
        this.currency = currency;
        this.delegationTime = delegationTime;
    }

    public int getDelegationId() {
        return delegationId;
    }

    public void setDelegationId(int delegationId) {
        this.delegationId = delegationId;
    }

    public String getcAccountId() {
        return cAccountId;
    }

    public void setcAccountId(String cAccountId) {
        this.cAccountId = cAccountId;
    }

    public String getSecurityId() {
        return securityId;
    }

    public void setSecurityId(String securityId) {
        this.securityId = securityId;
    }

    public String getSecurityName() {
        return securityName;
    }

    public void setSecurityName(String securityName) {
        this.securityName = securityName;
    }

    public String getDelegationDirection() {
        return delegationDirection;
    }

    public void setDelegationDirection(String delegationDirection) {
        this.delegationDirection = delegationDirection;
    }

    public int getDelegationNum() {
        return delegationNum;
    }

    public void setDelegationNum(int delegationNum) {
        this.delegationNum = delegationNum;
    }

    public double getDelegationPrice() {
        return delegationPrice;
    }

    public void setDelegationPrice(double delegationPrice) {
        this.delegationPrice = delegationPrice;
    }

    public int getDelegationState() {
        return delegationState;
    }

    public void setDelegationState(int delegationState) {
        this.delegationState = delegationState;
    }

    public double getEvenPrice() {
        return evenPrice;
    }

    public void setEvenPrice(double evenPrice) {
        this.evenPrice = evenPrice;
    }

    public String getTradingMarket() {
        return tradingMarket;
    }

    public void setTradingMarket(String tradingMarket) {
        this.tradingMarket = tradingMarket;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getDelegationTime() {
        return delegationTime;
    }

    public void setDelegationTime(String delegationTime) {
        this.delegationTime = delegationTime;
    }

    public double getBargainPrice() {
        return bargainPrice;
    }

    public void setBargainPrice(double bargainPrice) {
        this.bargainPrice = bargainPrice;
    }

    public double getBargainAmount() {
        return bargainAmount;
    }

    public void setBargainAmount(double bargainAmount) {
        this.bargainAmount = bargainAmount;
    }

    @Override
    public String toString() {
        return "Delegation{" +
                "delegationId=" + delegationId +
                ", cAccountId='" + cAccountId + '\'' +
                ", securityId=" + securityId +
                ", securityName='" + securityName + '\'' +
                ", delegationDirection='" + delegationDirection + '\'' +
                ", delegationNum=" + delegationNum +
                ", delegationPrice=" + delegationPrice +
                ", delegationState=" + delegationState +
                ", evenPrice=" + evenPrice +
                ", tradingMarket='" + tradingMarket + '\'' +
                ", currency='" + currency + '\'' +
                ", delegationTime='" + delegationTime + '\'' +
                ", bargainPrice=" + bargainPrice +
                ", bargainAmount=" + bargainAmount +
                '}';
    }
}
